export default {
  state: {
    student: {}
  },
  // 获取数据
  getters: {
    getStudent (state) {
      return state.student
    }
  },
  // 改变状态：同步
  mutations: {
    setStudent (state, value) {
      state.student = value
    }
  },
  // 提交 mutations,异步
  actions: {
    setStudent ({ commit }, value) {
      commit('commit', value)
    }
  }
}
